package com.sooncode.project.focusservice.model;

import com.sooncode.project.core.annotations.Lookup;
import com.sooncode.project.core.annotations.LookupModel;
import com.sooncode.project.focusservice._.base.BaseDomainModel;
import lombok.Data;

@Data
@LookupModel
public class CourseScript extends BaseDomainModel<CourseScript> {
    private String courseId;
    @Lookup(fromModel = Course.class,localField = "courseId",fromField = "joinName")
    private String courseName;
    private String type;
    @Lookup(fromModel = CourseScriptType.class,localField = "type",fromField = "name")
    private String typeName;
    @Lookup(fromModel = CourseScriptType.class,localField = "type",fromField = "identifier")
    private String identifier;
    private Double difficulty;
    private String script;
}
